export {};
/* 
    
*/

// let str1 = "Hello TS";
// str1 = "hello vue3";

// 定义的类型是"Hello TS"
// const str2 = "Hello TS";

// 字面量类型 通常配合 联合类型 去使用
type Gender = "男" | "女";
let gender: Gender = "男";
gender = "女";
// gender = "外星人";
// gender = "外星人";

type Methods = "GET" | "POST" | "PUT" | "DELETE" | "get";
let method: Methods = "GET";
method = "POST";
// method = "option"
